package com.itheima.reggie.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.vo.MyUtil;

import java.util.List;

public interface DishService {

    //菜品列表分页查询
    Page<Dish> findByPage(Integer pageNum, Integer pageSize, String name);

    void add(Dish dish);

    Dish findById(Long id);

    void update(Dish dish);

    void stopAndStartSale(Integer status, MyUtil myUtil);

    void deleteByIds(MyUtil myUtil);

    List<Dish> findByCategoryId(Long id);

    List<Dish> findList(Long id, Integer status);

    /*局内菜品搜索*/
    List<Dish> findByName(String name);
}
